package com.smartfarm.Zhuangshiqi;

import com.smartfarm.Gongchang.AgriculturalMachine;
import com.smartfarm.Zhuangshiqi.MachineDecorator;

public class GPSDecorator extends MachineDecorator {
    public GPSDecorator(AgriculturalMachine machine) {
        super(machine);
    }

    @Override
    public void operate() {
        super.operate();
        addGPSFunction();
    }

    private void addGPSFunction() {
        System.out.println("启用高精度GPS定位导航");
    }
}
